package reco.db.validation;

import reco.db.Constraint;

public class CreditCardConstraintFactory extends SimpleConstraintFactory implements StringConstraintFactory {
    public CreditCardConstraintFactory() {
        super(String.class);
    }

    @Override
    public <T> Constraint<T> createConstraint() {
        @SuppressWarnings("unchecked")
        // already checked T is assignable to String
        final Constraint<T> constraint = (Constraint<T>) new CreditCardConstraint();

        return constraint;
    }
}